package com.theyeasy.dvmini.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;


@Controller
@RequestMapping("/autoreply")
public class AutoreplyController extends BaseController {

    @Autowired
    RedisTemplate<String, String> redisTemplate;

    @RequestMapping("/autoresponse")
    public ModelAndView autoreplyIndex() {

        ModelAndView mv = new ModelAndView("/pc/autoresponse/autoresponse");
        return mv;
    }


    //自动回复列表
    @RequestMapping(value = "/getAutoreplyList")
    @ResponseBody
    public Object autoreplyList(String keyword, boolean isRedirectStaff) {

        return null;
    }

    //添加关键字
    @RequestMapping(value = "/addAutoreply")
    @ResponseBody
    public Object addautoreply(String keywords, boolean isRedirectStaff, String content) {

        return null;
    }

    //修改关键字
    @RequestMapping(value = "/updateAutoreply")
    @ResponseBody
    public Object updateautoreply(Integer id, String keywords, boolean isRedirectStaff, String content) {

        return null;
    }

    //删除关键字
    @RequestMapping(value = "/deleteAutoreply")
    @ResponseBody
    public Object deleteautoreply(Integer id) {

        return null;
    }

}